<!--
 * @Author: 小幸
 * @Date: 2021-04-15 14:50:55
 * @LastEditors: aum
 * @LastEditTime: 2021-08-27 14:30:10
 * @Description: 404页面
 * @FilePath: \vue3\src\views\tool\404.vue
-->
<template>
  <van-empty image="error" description="页面不存在">
    <van-button type="primary" size="normal" @click="goBack">返回上一页</van-button>
  </van-empty>
</template>

<script lang="ts">
  import { defineComponent, ref } from 'vue'
  import { useRouter } from 'vue-router'
  export default defineComponent({
    setup() {
      const router = useRouter()
      const parmsa = ref({})
      const show = ref(true)
      const goBack = () => {
        router.go(-1)
      }
      return {
        goBack,
        parmsa,
        show
      }
    }
  })
</script>

<style lang="less" scope></style>
